package com.poi.demopoi.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.poi.demopoi.config.page.PageResultDTO;
import com.poi.demopoi.controller.EmployeeDTO2;
import com.poi.demopoi.domain.Employee;
import com.poi.demopoi.domain.EmployeeDto;
import com.poi.demopoi.domain.EmployeeVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lx
 * @since 2020-06-03
 */
public interface IEmployeeService extends IService<Employee> {


    List<Employee> selectEmployeePagesRuoyi(Employee tOperator);

    List<EmployeeVO> findPagesLogical(EmployeeDto dto, int start, int end);

    int batchSaveList(List<Employee> userList);

    PageResultDTO<Employee> queryByPage(EmployeeDTO2 queryDTO);

    IPage<Employee> getUsersWithRolePage(Page page, Employee userDTO);

    IPage<Employee> getUsersWithRolePage02(Page page, Wrapper<Employee> queryWrapper);

    int batchUpdateList(List<Employee> userList);
}
